package com.changlu;

import com.changlu.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @ClassName ChangLuApplication
 * @Author ChangLu
 * @Date 2021/8/22 22:48
 * @Description TODO
 */

@ComponentScan("com.changlu")
@EnableAspectJAutoProxy
public class ChangLuApplication {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(ChangLuApplication.class);
        UserService userService = applicationContext.getBean("userService",UserService.class);
    }
}